package com.lemon.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 盘点报损表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StocktakingLoss {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 损失数量
     */
    @TableField(value = "loss_count")
    private Integer lossCount;

    /**
     * 损失类型(1 破损、2丢失)
     */
    @TableField(value = "loss_category")
    private Integer lossCategory;

    /**
     * 盘点信息ID
     */
    @TableField(value = "stocktaking_info")
    private Long stocktakingInfo;

    /**
     * 操作员工ID
     */
    @TableField(value = "emp_id")
    private Integer empId;

    /**
     * SaaS标识
     */
    @TableField(value = "saas_id")
    private String saasId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 创建人账号
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 修改人账号
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 是否删除  1 未删除  2 已删除
     */
    @TableField(value = "is_del")
    private Integer isDel;
}